addLanguage

abstract fun addLanguage(language: Language)

Adds the language to the list of the languages for which spell checking is performed.

On Windows and Linux, this method loads the dictionary for the given language and blocks the current thread execution until the dictionary is loaded from the user data directory. If the dictionary does not exist in the user data directory, the engine will download it from the remote server.

On macOS, this method checks whether the specified dictionaries are present in the system, and throws a LanguageNotAvailableException if not.

Since

7.27

Parameters

language

a language for which the dictionary must be loaded

Throws

when language is null

when the profile is deleted or its engine is closed

if Chromium fails to download the dictionary for the given language (Windows and Linux), or the dictionary is not available in the system (macOS)